package com.cvo.scrumtoolkit.client.pannels.widgets;

import com.cvo.scrumtoolkit.client.entities.WorkItem;
import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;

public class WorkItemWidget extends Composite {

	private static WorkItemWidgetUiBinder uiBinder = GWT
			.create(WorkItemWidgetUiBinder.class);

	interface WorkItemWidgetUiBinder extends UiBinder<Widget, WorkItemWidget> {
	}

	public WorkItemWidget(WorkItem w) {
		initWidget(uiBinder.createAndBindUi(this));
		workItem.setText(w.getWorkItemName());
		storypoints.setText(w.getStorypoints());
		developer.setText(w.getDeveloperName());
		finished.setText(w.getFinished());
		time.setText(w.gettime());
		
	}
	@UiField
	Label workItem;
	@UiField
	Label storypoints;
	@UiField
	Label developer;
	@UiField
	Label finished;
	@UiField
	Label time;
}
